home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / ACORNUSERS / EMULATOR / MAGICKIT / assembler / h / defs next >
Text File  |  1998-04-14  |  2KB  |  96 lines

  1. #define LAST_CH_POS    132
  2. #define SFIELD    26    /*23*/
  3. #define STABSZ    6000
  4. #define SBOLSZ    32
  5.  
  6. /*
  7.  * symbol flags
  8.  */
  9. #define DEFZRO    2    /* defined - page zero address    */
  10. #define MDEF    3    /* multiply defined        */
  11. #define UNDEF    1    /* undefined - may be zero page */
  12. #define DEFABS    4    /* defined - two byte address    */
  13. #define UNDEFAB 5    /* undefined - two byte address */
  14.  
  15. /*
  16.  * operation code flags
  17.  */
  18. #define CLASS1        0x010000
  19. #define CLASS2        0x020000
  20. #define CLASS3        0x040000
  21. #define CLASS5        0x080000
  22. #define CLASS6        0x100000
  23. #define CLASS7        0x200000
  24. #define CLASS8        0x400000
  25. #define PSEUDO        0x008000
  26. #define ACC            0x000001
  27. #define IMM            0x000002
  28. #define ZP            0x000004
  29. #define ZP_X        0x000008
  30. #define ZP_Y        0x000010
  31. #define ZP_IND        0x000020
  32. #define ZP_IND_X    0x000040
  33. #define ZP_IND_Y    0x000080
  34. #define ABS            0x000100
  35. #define ABS_X        0x000200
  36. #define ABS_Y        0x000400
  37. #define ABS_IND        0x000800
  38. #define ABS_IND_X    0x001000
  39.  
  40. /*
  41.  * pass flags
  42.  */
  43. #define FIRST_PASS    0
  44. #define LAST_PASS    1
  45. #define DONE        2
  46.  
  47. struct t_opcode {
  48.     char *name;
  49.     int   flag;
  50.     int   value;
  51.     int   type_idx;
  52. };
  53.  
  54. struct t_input_info {
  55.     FILE *fptr;
  56.     int   lnum;
  57.     char  name[120];
  58. };
  59.  
  60. struct t_symbol {
  61.     struct t_symbol *next;
  62.     struct t_symbol *local;
  63.     int  type;
  64.     int  value;
  65.     int  bank;
  66.     int  page;
  67.     char name[32];
  68. };
  69.  
  70. struct t_line {
  71.     struct t_line *next;
  72.     char *data;
  73. };
  74.  
  75. struct t_macro {
  76.     struct t_macro *next;
  77.     struct t_line *line;
  78.     char name[32];
  79. };
  80.  
  81. struct pcx_header {
  82.     char  manufacturer, version,
  83.           encoding,
  84.           bpp;
  85.     short xmin, ymin, xmax, ymax,
  86.           xdpi, ydpi;
  87.     char  colormap[16][3],
  88.           reserved,
  89.           np;
  90.     short bytes_per_line,
  91.           palette_info,
  92.           xscreen, yscreen;
  93.     char  pad[54];
  94. };
  95.  
  96.